import request from "@/utils/request.js"

// 查看党员未参与的试卷列表
export const getExamPaperList = data => {
	return request({
		url: `/app/dj/exam/getExamPaperList`,
		data
	})
}
// 查看党员已经参与过的试卷列表
export const getCompetedExamPaperList = data => {
	return request({
		url: `/app/dj/exam/getCompetedExamPaperList`,
		data
	})
}
// 查看试卷具体信息
export const getExamPaperInfo = data => {
	return request({
		url: `/app/dj/exam/getAppInfo`,
		data
	})
}
// 查看试卷具体成绩信息
export const getExamPaperScoreInfo = data => {
	return request({
		url: `/app/dj/exam/getExamPaperScoreInfo`,
		data
	})
}
// 提交试卷
export const submitExamPaper = data => {
	return request({
		method: 'post',
		url: `/app/dj/exam/submitExamPaper`,
		data
	})
}
// 查询当前已考过试卷的历史记录
export const getHistoryExamPaperList = data => {
	return request({
		url: `/app/dj/exam/getCompetedHistoryExamPaperList`,
		data
	})
}
// 查询错题集
export const getErrorQuestion = data => {
	return request({
		url: `/app/dj/exam/getExamPaperErrorQuestion`,
		data
	})
}
